<div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <a class="brand" href="/">備品・施設管理</a>
      <ul class="nav">
<?php $url = $sf_context->getRequest()->geturi()?>
        <li <?php echo($url == "http://sf.mismanage.com/")?"class=\"active\"":"";?>><a href="/">Home</a></li>
        <li <?php echo($url == "http://sf.mismanage.com/equipment/")?"class=\"active\"":"";?>><a href="/equipment/">備品</a></li>
        <li <?php echo($url == "http://sf.mismanage.com/room/")?"class=\"active\"":"";?>><a href="/room/">施設</a></li>
        <li <?php echo($url == "http://sf.mismanage.com/member/")?"class=\"active\"":"";?>><a href="/member/">メンバー</a></li>
        <li <?php echo($url == "http://sf.mismanage.com/calender/")?"class=\"active\"":"";?>><a href="/calender/">カレンダー</a></li>
      </ul>
      <ul class="nav pull-right">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            <strong>My Account
              <span class="caret"></span>
            </strong>
          </a>
          <ul class="dropdown-menu">

            <li><a href="/backend/myaccount/index"><?php echo $sf_user->getAttribute("username", sfConfig::get("sf_session_name"))?>さんの情報</a></li>
<?php if($sf_user->getAttribute("admin_yn", sfConfig::get("sf_session_name")) =="y"):?>
            <li><a href="/backend/">管理ページへ</a></li>
<?php endif;?>

            <li class="divider"></li>
            <li><?php echo link_to("ログアウト","/backend/logout")?></a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /container -->
  </div><!-- /navbar_inner -->
</div><!-- /navbar navbar_fixed-top -->
